Skip to content

ci: fix merge-queue trigger gaps and run CI on develop + main - #278

Merged
harshtandiya merged 2 commits into
developfrom
claude/ci-workflow-triggers-i3uhcz
Jul 23, 2026
Merged

ci: fix merge-queue trigger gaps and run CI on develop + main#278
harshtandiya merged 2 commits into
developfrom
claude/ci-workflow-triggers-i3uhcz

Conversation

@harshtandiya

Copy link
Copy Markdown
Collaborator

Summary

Audit of the CI workflow triggers, plus adjustments for the default branch move to develop (while keeping CI running on main too).

Two workflows had required status checks that don't behave correctly with the merge queue — the flagship being the PR-title check, which never reports on the merge_group commit and leaves the queue stuck "Expected — Waiting for status to be reported."

Changes

Branch coverage (default branch is now develop)

  • ci.yml, typecheck.yml, unit-tests.yml, ui-tests.yml: add develop to push.branches (kept main). pull_request stays unfiltered so PRs to either branch still run.

Merge-queue correctness

  • pr-tittle-check.yml: add a merge_group trigger and guard the validation step with if: github.event_name != 'merge_group'. The check now reports success on the queue commit instead of hanging forever (the title can't change inside the queue, so there's nothing to re-validate).
  • linter.ymlFrappe Linter: drop if: github.event_name == 'pull_request' so lint is actually enforced in the merge queue. Previously it was skipped there, and a skipped required check counts as green — i.e. lint was silently bypassed on the way in.

Dependency scan timing

  • linter.ymlVulnerable Dependency Check: restrict to pull_request plus a new weekly schedule (Mondays 00:00 UTC), and keep it off merge_group/push. pip-audit reads an external advisory DB, so its result depends on when it runs — running it in the queue meant a freshly published CVE could block an otherwise-good merge on something the author can't fix.

Cosmetic

  • ci.yml: rename concurrency prefix main-buzz-*ci-buzz-* now that main isn't the default branch. No functional effect (concurrency group names don't affect required-check names).

Notes / follow-up

  • No job names changed, so branch-protection required-check names stay valid.
  • Worth confirming whether the merge queue is enabled on develop only or on main too, so the required-check list in branch protection is set for the right branch(es). This PR's on: blocks work for either since merge_group needs no branch filter.

🤖 Generated with Claude Code


Generated by Claude Code

Default branch moved to develop; keep CI running on both develop and main.
Also close two merge-queue trigger mismatches surfaced during a workflow
trigger audit.

- ci/typecheck/unit-tests/ui-tests: add `develop` to push branches so
  post-merge runs happen on both develop and main.
- pr-tittle-check: add a `merge_group` trigger and guard the validate step
  with `if: github.event_name != 'merge_group'`. As a required check it was
  never reporting on the queue commit, leaving the merge queue stuck
  "waiting for status to be reported"; it now reports success without
  re-validating (the title can't change in the queue).
- linter (Frappe Linter): drop `if: github.event_name == 'pull_request'` so
  lint is enforced in the merge queue instead of being skipped (a skipped
  required check counts as green).
- linter (Vulnerable Dependency Check): restrict to pull_request plus a new
  weekly schedule, and keep it off merge_group/push so a freshly published
  CVE in the external advisory DB can't block a queued merge.
- ci: rename concurrency prefix main-buzz -> ci-buzz now that main is not the
  default branch (no functional effect).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013EYfuce7SdhQDyZNCRMaNa

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

harshtandiya has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@harshtandiya harshtandiya added the backport main backport to main branch label Jul 23, 2026 — with Claude
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013EYfuce7SdhQDyZNCRMaNa

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

harshtandiya has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@harshtandiya
harshtandiya merged commit 2e16e49 into develop Jul 23, 2026
7 checks passed
@harshtandiya
harshtandiya deleted the claude/ci-workflow-triggers-i3uhcz branch July 23, 2026 12:41
@github-actions

Copy link
Copy Markdown
Contributor

Successfully created backport PR for main:

harshtandiya added a commit that referenced this pull request Jul 23, 2026
ci: fix merge-queue trigger gaps and run CI on develop + main (#278)

* ci: fix merge-queue trigger gaps and add develop to CI branches

Default branch moved to develop; keep CI running on both develop and main.
Also close two merge-queue trigger mismatches surfaced during a workflow
trigger audit.

- ci/typecheck/unit-tests/ui-tests: add `develop` to push branches so
  post-merge runs happen on both develop and main.
- pr-tittle-check: add a `merge_group` trigger and guard the validate step
  with `if: github.event_name != 'merge_group'`. As a required check it was
  never reporting on the queue commit, leaving the merge queue stuck
  "waiting for status to be reported"; it now reports success without
  re-validating (the title can't change in the queue).
- linter (Frappe Linter): drop `if: github.event_name == 'pull_request'` so
  lint is enforced in the merge queue instead of being skipped (a skipped
  required check counts as green).
- linter (Vulnerable Dependency Check): restrict to pull_request plus a new
  weekly schedule, and keep it off merge_group/push so a freshly published
  CVE in the external advisory DB can't block a queued merge.
- ci: rename concurrency prefix main-buzz -> ci-buzz now that main is not the
  default branch (no functional effect).


Claude-Session: https://claude.ai/code/session_013EYfuce7SdhQDyZNCRMaNa

* ci: trim verbose workflow comments


Claude-Session: https://claude.ai/code/session_013EYfuce7SdhQDyZNCRMaNa

---------


(cherry picked from commit 2e16e49)

Co-authored-by: Harsh Tandiya <harsh.tandiya@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport main backport to main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants